package com.skillworld.webapp.model.tutorialservice;

import java.util.Locale;

@SuppressWarnings("serial")
public class TranslationAlreadyExistsException  extends Exception{

    private long tutorialId;
    private Locale locale;
    
    
    public TranslationAlreadyExistsException(long tutorialId, Locale locale) 
    {
        super("Tutorial " + tutorialId + " already translated to " + locale.getDisplayName());
        this.tutorialId = tutorialId;
        this.locale = locale;
    }

    
    public void setTutorialId(long tutorialId) 
    {
        this.tutorialId = tutorialId;
    }
    
    public long getTutorialId()
    {
        return tutorialId;
    }

    public Locale getLocale()
    {
        return locale;
    }

    public void setLang(Locale locale)
    {
        this.locale = locale;
    }

}

